<style>
.new-lay-span{
    display: inline-block;
    width: 45%!important;
    line-height: 3rem;
}
</style>





<div class="x-body">
    <h3>基本信息</h3>
    <hr>
    <form class="layui-form form_single" id="form" action="{:url()}" method="post">
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 商店 ：{$info.shop->shop_name}</span>
            <span class="layui-input-inline new-lay-span"> 币种 ：{$info.wallet.name}</span>

        </div>
        <div class="layui-form-item">

            <span class=" new-lay-span"> 订单号 ：{$info.serial_number}</span>
            <span class="layui-input-inline new-lay-span"> 创建时间 ：{$info.create_time}</span>
        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单数量 ：{$info.number}</span>

        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单单价 ：{$info.price}</span>

        </div>

        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单总价 ：{$info.total}</span>
            {if condition ="$info.order_id gt 0"}   <span class="layui-input-inline new-lay-span"> 原转移订单号 ：<a href="{:url('trade_order_detail', array('id' => $info['order_id']))}" style="color: #0a8cd2">{$info.contractorder.serial_number}</a></span>{/if}

        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单状态 ：{$info.state_text}{if condition ="$info.contractorder1 eq true"}<span style="color: #f56c6c">(已转移)</span>{/if}</span>


        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 打款截图 ：{if condition="$info.cover_id gt 0  "}<a href="{$info.image}" target="_blank"><img style="width: 150px;height: 150px" src="{$info.image}"></a>{/if}</span>

        </div>


        <hr>
        <h3>买家信息</h3>
        <hr>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 会员账号 ：{$info.member->username}</span>
            <span class="layui-input-inline new-lay-span"> 手机号码 ：+{$info.member.area}{$info.member.mobile}</span>

        </div>
        <div class="layui-form-item">


            <span class="layui-input-inline new-lay-span"> 打款时间 ：{$info.pay_time}</span>
            <span class="layui-input-inline new-lay-span"> 打款超时时间 ：{$info.pay_expire_time}</span>
        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 是否打款超时 ：{$info.is_expire_pay}</span>

        </div>

        <hr>
        <table class="layui-table x-admin">
            <thead>
            <tr>
                <th>
                    序号
                </th>
                <th>类型</th>
                <th>名称</th>
                <th>账号</th>
                <th>收款二维码</th>
            </thead>
            {notempty name='info.buy_pay_list'}
            <tbody>
            {volist name='info.buy_pay_list' id='vo' key="k"}
            <tr>
                <td class="text-center">
                    {$k}
                </td>
                <td class="text-center">{$vo.type_text}</td>
                <td class="text-center">{if $vo.opening_bank eq true}{$vo.opening_bank}{else/}{$vo.type_text}{/if}</td>
                <td class="text-center">{$vo.true_name}(卡号：{$vo.bank_card})</td>
                <td class="text-center">{if condition="$vo.cover_id gt 0"}<img src="{$vo.cover_id|get_picture_url}" style="width:100px;margin-left:100px;">{/if}</td>

            </tr>
            {/volist}
            {else/}
            <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
            {/notempty}
            </tbody>
        </table>
            <hr>
        <h3>卖家信息</h3>

        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 会员账号 ：{$info.user->username}</span>
            <span class="layui-input-inline new-lay-span"> 手机号码 ：+{$info.user.area}{$info.user.mobile}</span>

        </div>
        <div class="layui-form-item">


            <span class="layui-input-inline new-lay-span"> 收款时间 ：{$info.receive_time}</span>
            <span class="layui-input-inline new-lay-span"> 收款超时时间 ：{$info.receive_expire_time}</span>
        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 是否收款超时 ：{$info.is_expire_receive}</span>

        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 放行速度 ：{$info.receive_minute}分钟</span>

        </div>
        <hr>
        <table class="layui-table x-admin">
            <thead>
            <tr>
                <th>
                    序号
                </th>
                <th>类型</th>
                <th>名称</th>
                <th>账号</th>
                <th>收款二维码</th>
            </thead>
            {notempty name='info.sell_pay_list'}
            <tbody>
            {volist name='info.sell_pay_list' id='vo' key="k"}
            <tr>
                <td class="text-center">
                    {$k}
                </td>
                <td class="text-center">{$vo.type_text}</td>
                <td class="text-center">{if $vo.opening_bank eq true}{$vo.opening_bank}{else/}{$vo.type_text}{/if}</td>
                <td class="text-center">{$vo.true_name}(卡号：{$vo.bank_card})</td>
                <td class="text-center">{if condition="$vo.cover_id gt 0"}<img src="{$vo.cover_id|get_picture_url}" style="width:100px;margin-left:100px;">{/if}</td>

            </tr>
            {/volist}
            {else/}
            <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
            {/notempty}
            </tbody>
        </table>
        <hr>
        <h3>申诉</h3>
        <hr>
        {if condition="$info.feedback eq true"}
            <div class="layui-form-item">
                <span class="layui-input-inline new-lay-span"> 是否申述 ：是</span>
                <span class="layui-input-inline new-lay-span"> 申诉内容 ：{$info.feedback.content}</span>

            </div>
            <div class="layui-form-item">


                <span class="layui-input-inline new-lay-span"> 处理类型 ：{$info.feedback.type_text}</span>
            </div>
            <div class="layui-form-item">


                <span class="layui-input-inline new-lay-span"> 申诉时间 ：{$info.feedback.create_time}</span>
                <span class="layui-input-inline new-lay-span"> 处理方式 ：{$info.feedback_type}</span>
            </div>

            <div class="layui-form-item">
                <span class="layui-input-inline new-lay-span"> 处理状态 ：{$info.feedback.state_html}</span>
                <span class="layui-input-inline new-lay-span"> 处理意见 ：{$info.feedback_content}</span>

            </div>
        {else/}
            <div class="layui-form-item">
                <span class="layui-input-inline new-lay-span"> 是否申述 ：否</span>
                <span class="layui-input-inline new-lay-span"> 申诉内容 ：</span>

            </div>
            <div class="layui-form-item">


                <span class="layui-input-inline new-lay-span"> 申诉时间 ：</span>
                <span class="layui-input-inline new-lay-span"> 惩罚机制 ：</span>
            </div>
            <div class="layui-form-item">
                <span class="layui-input-inline new-lay-span"> 处理状态 ：</span>
                <span class="layui-input-inline new-lay-span"> 处理意见 ：</span>

            </div>
        {/if}

        <a class="layui-btn ladda-button" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>



    </form>
</div>

<script>
    layui.use('form', function(){
        var form = layui.form;

        form.on('select(aihao)', function(data){
            console.log(data.elem); //得到select原始DOM对象
            console.log(data.value); //得到被选中的值
            console.log(data.othis); //得到美化后的DOM对象
            if(data.value==1){
                $('#video_url').hide();
                $('#video').show();
            }else{
                $('#video_url').show();
                $('#video').hide();
            }

            form.render(null, 'form');
        });


    });


    function changevideo(v) {
        if(v==1){
            $('#video').show();
            $('#video_url').hide();
        }else{
            $('#video_url').show();
            $('#video').hide();
        }
    }
</script>
